package com.base.service.COUPON.impl;

import com.base.mapper.couponmapper.CouponOrderNewMapper;
import com.base.po.coupon_new.CouponOrderNew;
import com.base.po.coupon_new.CouponOrderNewExample;
import com.base.service.COUPON.CouponOrderNewService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("CouponOrderNewService")
public class CouponOrderNewServiceImpl implements CouponOrderNewService {
    @Autowired
    CouponOrderNewMapper couponOrderNewMapper;

    @Override
    public int countByExample(CouponOrderNewExample example) {
        return couponOrderNewMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CouponOrderNewExample example) {
        return couponOrderNewMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return couponOrderNewMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CouponOrderNew record) {
        return couponOrderNewMapper.insert(record);
    }

    @Override
    public int insertSelective(CouponOrderNew record) {
        return couponOrderNewMapper.insertSelective(record);
    }

    @Override
    public List<CouponOrderNew> selectByExample(CouponOrderNewExample example) {
        return couponOrderNewMapper.selectByExample(example);
    }

    @Override
    public CouponOrderNew selectByPrimaryKey(Integer id) {
        return couponOrderNewMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(CouponOrderNew record, CouponOrderNewExample example) {
        return couponOrderNewMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(CouponOrderNew record, CouponOrderNewExample example) {
        return couponOrderNewMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(CouponOrderNew record) {
        return couponOrderNewMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CouponOrderNew record) {
        return couponOrderNewMapper.updateByPrimaryKey(record);
    }

    @Override
    public CouponOrderNew selectByPlatformBatchNo(String platform_batch_no) {
        return couponOrderNewMapper.selectByPlatformBatchNo( platform_batch_no);
    }

    @Override
    public Integer countAllBySub(Page page, String mobile, String parentid) {
        return couponOrderNewMapper.countAllBySub( page,  mobile,  parentid);
    }

    @Override
    public List<CouponOrderNew> selectAllBySub(Page page, String mobile, String parentid) {
        return couponOrderNewMapper.selectAllBySub( page,  mobile,  parentid);
    }

    @Override
    public Integer countALLLeftJoin(String parentid, String mobile, Integer status) {
        return couponOrderNewMapper.countALLLeftJoin( parentid,  mobile,  status);
    }

    @Override
    public List<Map> selectALLLeftJoin(Page page, String parentid, String mobile, Integer status) {
        return couponOrderNewMapper.selectALLLeftJoin( page,  parentid,  mobile,  status);
    }

    @Override
    public Integer countALLLeftJoinHv(Map<String, Object> map) {
        return couponOrderNewMapper.countALLLeftJoinHv(map);
    }

    @Override
    public List<Map<String,Object>> selectALLLeftJoinHv(Page page, Map<String, Object> map) {
        return couponOrderNewMapper.selectALLLeftJoinHv(page, map);
    }

}
